package services;

import domain.entities.ScorecardConfiguration;
import domain.entities.ScorecardConfigurationDAO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Guillermo
 * Date: 17/10/12
 * Time: 10:36
 * To change this template use File | Settings | File Templates.
 */
@Service
public class ScorecardConfigurationService {

    private ScorecardConfigurationDAO scorecardConfigurationDAO;

    public ScorecardConfigurationService() {
    }

    @Autowired
    public ScorecardConfigurationService(ScorecardConfigurationDAO scorecardConfigurationDAO) {
        this.scorecardConfigurationDAO = scorecardConfigurationDAO;
    }


    public List<ScorecardConfiguration> findByCompromisopaisId(Integer compromisopaisId){
        return scorecardConfigurationDAO.findByCompromisopaisId(compromisopaisId);
    }

    public ScorecardConfiguration findById(Integer id){
        return scorecardConfigurationDAO.findById(id);
    }

    public ScorecardConfigurationDAO getScorecardConfigurationDAO() {
        return scorecardConfigurationDAO;
    }


}
